# next(iter)
a=[1,2,3]
it=iter(a)
while 1:
    try:
        x=next(it)
        print(x)
    except:
        break